<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<?php echo $this->renderMeta(); ?>
<title>ecbond易帮 </title>
<link rel="stylesheet" type="text/css" href="<?php echo PL ?>skin/frontend/<?php echo $this->templateTheme?>/reset.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo PL ?>skin/share/css/ui.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo PL ?>skin/share/css/ui.core.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo PL ?>skin/share/css/ui.datepicker.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo PL ?>skin/member/<?php echo $this->templateTheme?>/css/main.css"/>
<?php echo $this->renderReferenceCss() ?>
<script type="text/javascript" language="javascript" src="<?php echo PL ?>skin/share/js/swfobject.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo PL ?>skin/share/js/jquery/jquery.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo PL ?>skin/share/js/jquery/jquery.metadata.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo PL ?>skin/share/js/jquery/jquery.validate.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo PL ?>skin/share/js/jquery/jquery.ui.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo PL ?>skin/backend/default/js/backend.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo PL ?>lang/zh_cn.js"></script>
<?php echo $this->renderReferenceScript() ?>
<?php echo $this->renderScriptBlock() ?>
<?php echo $this->renderStartupScript() ?>
<script type="text/javascript">
    var pageInfo = {
        baseUrl:'<?php echo BL ?>',
        domainUrl:'<?php echo $this->router->getDomain()->getBaseUrl()?>'
    };
    $(function(){
        $('#main_container').height($(window).height() - $('.top').height() - $('.navigation').height() - $('.footer').height() - 25);
    });
</script>
</head>
<body>
<div class="top">
<div class="left">
<a href="/"><img src="/pub/skin/frontend/default/pic/logo-Guide.gif"/></a>
</div>
<div class="right">
<a><span><b><?php echo $this->identity->getName() ?></b></span></a>
<a target="_blank" href="<?php echo $this->rewriteUrl('frontend/enterprise/card/index', array('id'=>$this->session->get('enterpriseId')))?>">
<span>
<?php if($this->session->get('simulate')):?>
[<?php echo $this->session->get('enterpriseName')?>]
<?php else:?>
[我的名片]
<?php endif;?>
</span>
</a>
<?php if($this->session->get('simulate')):?>
<a href="<?php echo $this->buildUrl('backend/enterprise/account/logout') ?>"><span>[退出模拟登录]</span></a>
<?php else:?>
<a href="<?php echo $this->buildUrl('*/account/logout/index') ?>"><span>[退出]</span></a>
<?php endif;?>
</div>
</div>
<?php
$com = $this->router->getComponent();
$ctrl = $this->router->getController();
$act = $this->router->getAction();
?>
<div class="navigation">
	<a href="<?php echo $this->buildUrl('*/enterprise/index/index') ?>"
	class="item<?php echo $com == 'enterprise' && $ctrl == 'index'? ' active': ''?>">
	<span>会员首页</span>
	</a>
	<a href="<?php echo $this->buildUrl('*/enterprise/information/base') ?>"
	class="item<?php echo $com == 'enterprise' && $ctrl == 'information'? ' active': ''?>">
	<span>企业信息</span>
	</a>
	<div class="sep"></div>
	<a href="<?php echo $this->buildUrl('*/enterprise/ebook/index', array('type'=>'all')) ?>"
	class="item<?php echo $com == 'enterprise' && $ctrl == 'ebook'? ' active': ''?>">
	<span>电子图册</span>
	</a>
	<div class="sep"></div>
	<a href="<?php echo $this->buildUrl('*/account/password/change') ?>"
	class="item<?php echo $com == 'account'? ' active': ''?>">
	<span>个人管理</span>
	</a>	
</div>
<table id="main_container" class="container" cellpadding="0" cellspacing="0">
<tr>
<td class="menu-container">   
	<div class="menu">
<?php if($com == 'account'):?>  
         <div class="head">
            <span>个人管理</span>
        </div>
        <a href="<?php echo $this->buildUrl('*/account/password/change')?>" 
        	class="item active">
            <span>修改密码</span>
        </a>
<?php elseif($com == 'enterprise' && $ctrl == 'index'):?>  
         <div class="head">
            <span>会员首页</span>
        </div>
        <a href="<?php echo $this->buildUrl('*/enterprise/index/index')?>" 
        	class="item active">
            <span>统计信息</span>
        </a>            
<?php elseif($com == 'enterprise' && $ctrl == 'information'): ?>    
        <div class="head">
            <span>企业信息</span>
        </div>       
        <a href="<?php echo $this->buildUrl('*/enterprise/information/base')?>" 
        	class="item<?php echo $act == 'base'? ' active': ''?>">
            <span>基本信息</span>
        </a>
        <a href="<?php echo $this->buildUrl('*/enterprise/information/location')?>" 
        	class="item<?php echo $act == 'location'? ' active': ''?>">
            <span>位置信息</span>
        </a>            
<?php elseif($com == 'enterprise' && $ctrl == 'ebook'):?>    
        <div class="head">
            <span>电子图册</span>
        </div>     
        <a href="<?php echo $this->buildUrl('*/enterprise/ebook/index', array('type'=>'all'))?>" 
        	class="item<?php echo in_array($act, array('index', 'edit', 'create'))? ' active': ''?>">
            <span>图册列表</span>
        </a>
        <a href="<?php echo $this->buildUrl('*/enterprise/ebook/authcode_index', array('type'=>'all'))?>" 
        	class="item<?php echo in_array($act, array('authcode_index', 'authcode_create'))? ' active': ''?>">
            <span>授权码</span>
        </a>             
<?php endif; ?>                                                    
    </div>
</td>
<td style="background-color:#ffffff;width:1px;"></td>
<td class="main-container">
<?php echo $this->loadTemplate('block'.DS.'message')?>
<div class="location">
<?php echo $this->loadTemplate('block'.DS.'location')?>
</div>
<?php echo $this->renderBlock('main') ?>
</td>
</tr>
</table>
<div class="public_width footer" align="center">
    <p style="line-height:21px;">
	广东宇星创媒信息科技有限公司
    </p>
    <font face="Arial,Tahoma,Verdana"> Copyright &copy; 2010 粤ICP备09080951号</font>
</div>
</body>
</html>